import request from '@/utils/request'

// 查询物流信息列表
export function listLogistics(query) {
  return request({
    url: '/fun/logistics/list',
    method: 'get',
    params: query
  })
}

// 查询物流信息详细
export function getLogistics(logisticsId) {
  return request({
    url: '/fun/logistics/' + logisticsId,
    method: 'get'
  })
}

// 新增物流信息
export function addLogistics(data) {
  return request({
    url: '/fun/logistics',
    method: 'post',
    data: data
  })
}

// 修改物流信息
export function updateLogistics(data) {
  return request({
    url: '/fun/logistics',
    method: 'put',
    data: data
  })
}

// 删除物流信息
export function delLogistics(logisticsId) {
  return request({
    url: '/fun/logistics/' + logisticsId,
    method: 'delete'
  })
}

// 微信发货信息录入
export function wechatShipping(data) {
  return request({
    url: '/fun/logistics/wechatShipping',
    method: 'post',
    data: data
  })
}

// 查询订单发货状态
export function queryShippingStatus(data) {
  return request({
    url: '/fun/logistics/queryShippingStatus',
    method: 'post',
    data: data
  })
}
